package com.bstek.bdf4.investigate.dao;

import com.bstek.bdf4.investigate.entity.Category;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

public interface CategoryJPADao extends JpaRepository<Category, Long> {
    List<Category> findCategoriesByParentIdEquals(Long parentId);

    Category findCategoryByIdEquals(Long id);
}
